import Router from '@koa/router';
import { calculatePrice } from '../controllers/calculatorController';
import { saveCalculation, getCalculationsByProductId, getCalculationHistory } from '../controllers/calculationController';

const router = new Router();

router.post('/api/calculate', calculatePrice);
router.post('/api/calculations', saveCalculation);
router.get('/api/calculations/:product_id', getCalculationsByProductId);
router.get('/api/history', getCalculationHistory);

export default router; 